#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QTextEdit>
#include <QComboBox>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QPushButton>
#include <QPixmap>

class Dialog : public QDialog
{
    Q_OBJECT

public:
    Dialog(QWidget *parent = 0);
    ~Dialog();

private:
    QGridLayout *mainLayout;

    // 左侧上部布局所有控件
    QGridLayout *leftLayout;
    QLabel *userLabel;
    QLineEdit *userEdit;
    QLabel *nameLabel;
    QLineEdit *nameEdit;
    QLabel *sexLabel;
    QComboBox *sexComboBox;
    QLabel *departLabel;
    QTextEdit *departEdit;
    QLabel *ageLabel;
    QLineEdit *ageEdit;
    QLabel *otherLabel;

    // 右侧上部布局所有控件
    QHBoxLayout *topRightLayout;
    QLabel *headLabel;
    QLabel *headIconLabel;
    QPushButton *updateButton;

    // 右侧下部布局
    QLabel *introductionLabel;
    QTextEdit *introductionEdit;

    QVBoxLayout *rightLayout;

    // 下部两个按钮的布局
    QPushButton *okButton;
    QPushButton *cancelButton;
    QHBoxLayout *buttonLayout;
};

#endif // DIALOG_H
